<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/banner', 'BannerController');//轮播图
    $router->resource('/category', 'CategoryController');//商品分类
    $router->resource('/commodity', 'CommodityController');//商品
    $router->resource('/cart', 'CartController');//购物车
    $router->resource('/information_reservation', 'InformationReservationController');//资讯预约
    $router->resource('/order', 'OrderController');//订单
    $router->resource('/user', 'UserController');//用户
    $router->resource('/receiving_addres', 'ReceivingAddresController');//收货地址
    $router->resource('/company_information', 'CompanyInformationController');//公司企業信息
    $router->resource('/case_center', 'CaseCenterController');//案例中心
    $router->resource('/commodity_series', 'CommoditySeriesController');//商品系列

});
